﻿@model QRCodePass.Mvc.ViewModels.Process.ProcessCreateViewModel
@{ ViewBag.Title = "编辑流程信息"; }

<form asp-action="edit" method="post" class="mt-3">
    <div asp-validation-summary="All" class="text-danger"></div>

    <div class="form-group row">
        <label asp-for="ProcessId" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <input asp-for="ProcessId" disabled class="form-control" />
        </div>
        <input type="hidden" asp-for="ProcessId" />
    </div>

    <div class="form-group row">
        <label asp-for="Title" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <input asp-for="Title" class="form-control" placeholder="请输入流程名称" />
            <span asp-validation-for="Title" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group row">
        <label asp-for="Description" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <input asp-for="Description" class="form-control" placeholder="请输入" />
            <span asp-validation-for="Description" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group row">
        <label asp-for="BuildList" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <select asp-for="BuildId"
                    class="custom-select mr-sm-2"
                    asp-items="@Model.BuildList">
                <option value="">请选择</option>
            </select>
            <span asp-validation-for="BuildList" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group row">
        <label asp-for="ProcList" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <select asp-for="PreTask"
                    class="custom-select mr-sm-2"
                    asp-items="@Model.ProcList">
                <option value="">请选择</option>
            </select>
            <span asp-validation-for="ProcList" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <div class="col-sm-10">
            <button type="submit" class="btn btn-primary">更新</button>
            <a asp-action="index" class="btn btn-primary">取消</a>
        </div>
    </div>
</form>